<template>
	<view class="bg-white p-2">
		<!-- 交易日期 -->
		<view class="font-md flex flex-column py-1 px-2 justify-between" style="width: 2000rpx;">
			<view class="flex justify-between align-center w-100">
				<view class="flex align-center mr-4">
					<text class="mr-1">申请开始日期:</text>
					<view style="width: 300rpx;">
						<uni-datetime-picker type="date" :clear-icon="false" v-model="single" @maskClick="maskClick" />
					</view>
				</view>
				<view class="flex align-center">
					<text class="mr-1">申请结束日期:</text>
					<view style="width: 300rpx;">
						<uni-datetime-picker type="date" :clear-icon="false" v-model="single" @maskClick="maskClick" />
					</view>
				</view>
				<view class="flex align-center">
					<text class="mr-1">融资状态:</text>
					<view style="width: 300rpx;">
						<uni-data-select placeholder="请选择状态" v-model="Selectvalue" :localdata="range" @change="change"></uni-data-select>
					</view>
				</view>
				<view>
					<view class="bg-orange text-white text-center" style="height: 60rpx;line-height: 60rpx;width: 150rpx;">
						<text>搜索</text>
					</view>
				</view>
			</view>
		    <!-- 表格 -->
		    <view class="mt-2 flex flex-column">
		    	<view class="w-100 flex font-sm font-weight-bold"
		    		style="background-color: rgb(245,245,245);height: 80rpx;">
		    		<view class="text-center" style="width: 20%;line-height: 80rpx;">
		    			<text>商品信息</text>
		    		</view>
		    		<view class=" text-center" style="width: 20%;line-height: 80rpx;">
		    			<text>融资信息</text>
		    		</view>
		    		<view class=" text-center" style="width: 20%;line-height: 80rpx;">
		    			<text>运输信息</text>
		    		</view>
		    		<view class=" text-center" style="width: 20%;line-height: 80rpx;">
		    			<text>融资状态</text>
		    		</view>
					<view class=" text-center" style="width: 20%;line-height: 80rpx;">
						<text>融资操作</text>
					</view>
		    	</view>
		    	<view v-if="false" style="height: 200rpx;" class="w-100 flex justify-center align-center">
		    		暂无数据
		    	</view>
		    	<view v-else class="flex font-sm" style="height: 150rpx;border-bottom:2rpx solid rgb(221,221,211);"
		    		v-for="(item,index) in 4" :key="index">
		    		<view class=" flex justify-center align-center" style="width: 20%;line-height: 70rpx;">
		    			<text title="250kg纯真无敌超级大玉米测试长度测试长度测试长度测试长度" class="text-ellipsis">250kg纯真无敌超级大玉米测试长度测试长度测试长度测试长度测试长度测试长度</text>
		    		</view>
		    		<view class="flex align-center justify-center" style="width: 20%;line-height: 70rpx;">
		    			<view class="flex justify-center">
		    				<text class="text-orange">已签订</text>
		    			</view>
		    		</view>
					<view class="flex align-center justify-center" style="width: 20%;line-height: 70rpx;">
						<view class="flex justify-center">
							<text>发货中</text>
						</view>
					</view>
		    		<view class="flex align-center justify-center" style="width: 20%;line-height: 70rpx;">
		    			<text>已完成</text>
		    		</view>
		    		<view class="flex align-center justify-center" style="width: 20%;line-height: 70rpx;">
		    			<button class="font-sm bg-success text-white flex justify-center align-center"
		    				style="white-space: nowrap; width: 100rpx;height: 100rpx;">查看</button>
		    			<button class="font-sm bg-danger text-white flex justify-center align-center"
		    				style="white-space: nowrap;width: 100rpx;height: 100rpx;">删除</button>
		    		</view>
		    	</view>
		    </view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"SupplyChainServicesApply",
		data() {
			return {
				single:'',
				Selectvalue:'',
				range: [{
						value: 0,
						text: "审核中"
					},
					{
						value: 1,
						text: "审核通过"
					},
					{
						value: 2,
						text: "审核不通过"
					},
				],
			};
		},
		methods:{
			maskClick(e){
				console.log(e)
			},
			change(e){
				console.log(e)
			}
		}
	}
</script>

<style lang="scss">

</style>